//
//  RisacScrollView.swift
//  Risac
//
//  Created by remy on 2018/3/22.
//

import UIKit

open class RisacScrollView: UIScrollView {
    public override init(frame: CGRect) {
        super.init(frame: frame)
        self.showsHorizontalScrollIndicator = false
        self.showsVerticalScrollIndicator = false
        self.keyboardDismissMode = .onDrag
        if #available(iOS 11.0, *) {
            self.contentInsetAdjustmentBehavior = .never
        }
    }
    
    required public init?(coder: NSCoder) {
        super.init(coder: coder)
        self.showsHorizontalScrollIndicator = false
        self.showsVerticalScrollIndicator = false
        self.keyboardDismissMode = .onDrag
        if #available(iOS 11.0, *) {
            self.contentInsetAdjustmentBehavior = .never
        }
    }
    
    deinit {
        Risac.print("\(self.metaTypeName) has deinit")
    }
}
